package com.ganzalang.gmall.interfacespecification.fifth.dto.response;

import lombok.Data;

/**
 * @description:
 * @author: Ganzalang
 * @Date 2021/3/31 9:13
 */
@Data
public class ResultVO<T> {

    private Integer code;

    private String msg;

    private T data;

    public ResultVO(Integer code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ResultVO(T data) {
        this(1000, "success", data);
    }
}
